package
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	import org.as4game.resource.manager.ResourceManager;
	import org.as4game.resource.mesh.Mesh;
	import org.ext.loader.ogre.OgreLoader;

	public class TestLoadEntity extends Sprite
	{
		public function TestLoadEntity()
		{
			loadResource();
		}
		
		private function loadResource():void{
			var path:String = "F:/SDK_flash/as4game/trunk/test/testStandard/res/dragon_normal";
			var name:String = "dragon";
			var loader:OgreLoader = new OgreLoader;
			loader.addEventListener( Event.COMPLETE, onResourceComplete);
			loader.loadAll( path, name );
		}
		
		private function onResourceComplete(e:Event):void{
			var mesh:Mesh = ResourceManager.getMesh( "dragon.mesh" );
		}
	}
}